import {request} from "./index";

export function Login(params) {
    return request({
        url:"/user/login",
        method:"get",
        params
    })
}

export function New(data) {
    return request({
        url:"/user/new",
        method: "post",
        type:"json",
        data
    })
}

export function ChangePass(data) {
    return request({
        url:"/user/changepass",
        method: "post",
        type:"json",
        data
    })
}

export function GetAll(data) {
    return request({
        url:"/project/getall",
        method: "post",
        type:"json",
        data
    })
}

export function GetByClass(data) {
    return request({
        url:"/project/getbyclass",
        method: "post",
        type:"json",
        data
    })
}

export function delmyproject(data) {
    return request({
        url:"/project/delmyproject",
        method: "post",
        type:"json",
        data
    })
}

export function NewProject(data) {
    return request({
        url:"/project/new",
        method: "post",
        type:"json",
        data
    })
}

export function GetByPid(params) {
    return request({
        url:"/content/getbypid",
        method:"get",
        params
    })
}

export function Answer(data) {
    return request({
        url:"/content/post",
        method: "post",
        type:"json",
        data
    })
}
